From: Colin Walters Date: Tue, 6 Oct 2009 18:37:09 +0000 (-0400) Subject: Reset page when doing a FULL redisplay X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10717 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4f4e54cbf718f01b34fecf49ec5c35d57d64cdf3;p=gnome-shell.git Reset page when doing a FULL redisplay This fixes an issue where the app display would remember the page between switching menus. https://bugzilla.gnome.org/show_bug.cgi?id=597577 --- diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js index cbd211fb0..9dafd3319 100644 --- a/js/ui/genericDisplay.js +++ b/js/ui/genericDisplay.js @@ -639,12 +639,12 @@ GenericDisplay.prototype = { * their own while the user was browsing through the result pages. * SUBSEARCH - Indicates that the current _search is a superstring of the previous * one, which implies we only need to re-search through previous results. - * FULL - Indicates that we need refresh all displayed items. + * FULL - Indicates that we need recreate all displayed items; implies RESET_CONTROLS as well */ _redisplay: function(flags) { - let resetPage = (flags & RedisplayFlags.RESET_CONTROLS) > 0; let isSubSearch = (flags & RedisplayFlags.SUBSEARCH) > 0; let fullReload = (flags & RedisplayFlags.FULL) > 0; + let resetPage = (flags & RedisplayFlags.RESET_CONTROLS) > 0 || fullReload; let hadSelected = this.hasSelected(); this.unsetSelected();